package com.iot.constants;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lzb22
 */

@Getter
@AllArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EventEnum {
    /**
     * 系统中各事件分类标识
     */
    COMMON_EVENT(0, "通用事件"),
    MQTT_DATA_SAVE_EVENT(1, "MQTT数据保存"),
    WILL_MSG_EVENT(7, "遗言消息处理");

    private final int code;
    private final String desc;
}
